<?php echo '';exit;?>
<!--{template home/space_header}-->
<!--{template home/space_menu}-->
<!--{eval}-->
$page=$_G['page'];
$pagenum='15';
$length='200';
$begin=($page-1)*$pagenum;
$threadlist=array();

require_once(DISCUZ_ROOT."source/function/function_post.php");
$rs=DB::query("select t.*,p.message from ".DB::table("forum_thread")." t left join ".DB::table("forum_post")." p on  t.tid=p.tid and p.first=1 where t.authorid='{$space['uid']}' and t.displayorder>=0 and t.attachment>0 order by t.dateline desc limit $begin, $pagenum");
while ($rw=DB::fetch($rs)){
	$rw['message']=messagecutstr($rw['message'],$length,'');
	$rw['message']=dhtmlspecialchars($rw['message']);		
	$tableid=substr($rw['tid'],-1,1);
	$rw['aid']=DB::result_first("SELECT aid FROM ".DB::table("forum_attachment_{$tableid}")." WHERE `tid` ='{$rw['tid']}'AND isimage =1 ORDER BY aid ASC LIMIT 0 , 1");
	$threadlist[]=$rw;
}

$allnum=DB::result_first("select count(*) from ".DB::table("forum_thread")." t where t.authorid='{$space['uid']}' and t.displayorder>=0 and t.attachment=2");
$klp_pagation=multi($allnum,$pagenum,$page,"home.php?mod=follow&uid={$space['uid']}&do=view&from=space");
if(!isset($_G['cache']['forums'])){
	loadcache('forums');
}
<!--{/eval}-->
<div class="klp_conwrapr">
	<div class="klp_conarea">
		<div class="klp_contabnull">
			<!--{if $threadlist}-->
			<div class="klp_topconwrap">
				<div class="klp_actfilterdown">
					<span class="klp_mediumtit left">共上传{$allnum}组创作</span>
				</div>
				<div class="klp_allworklist">
					<div class="klp_wlistbox">
						<!--{loop $threadlist $thread}-->
						<!--{eval $pic=get_thread_aid($thread[tid]);}-->
						<div class="klp_mnbox">
							<div class="klp_mnboxcon">
								<div class="klp_bdimg">
									<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="klp_bdimgon" title="$thread[subject]" target="_blank">
										<img src="{eval echo(getforumimg($pic[aid],0,520,390))}" title="$thread[subject]" alt="$thread[subject]">
									</a>
								</div>
								<div class="klp_mninfo">
									<p class="klp_mninfotitle">
										<a href="forum.php?mod=viewthread&tid=$thread[tid]" title="$thread[subject]" class="klp_titleinfo" target="_blank" style="width: 154px;">$thread[subject]</a>
										<span href="javascript:;" class="klp_titleicon klp_cardfire2" title="编辑推荐"></span>
									</p>
									<p class="klp_mninfotype" title="$_G['cache']['forums'][$thread[fid]][name]">
										 $_G['cache']['forums'][$thread[fid]][name]
									</p>
									<p class="klp_mninfoitem">
										<span class="klp_statview" title="共{$thread[replies]}人气">{$thread[replies]}</span>
										<span class="klp_statcomment" title="共{$thread[replies]}评论">{$thread[replies]}</span>
										<span class="klp_stattui" title="共{$thread[recommends]}推荐">{$thread[recommends]}</span>
									</p>
								</div>
								<div class="klp_mncell">
									<a href="home.php?mod=space&uid=$space['uid']" title="{$thread[author]}" target="_blank" >
           									 <img src="{echo avatar($space['uid'],'big',1);}"  alt="" height="30" width="30">
                							 {$thread[author]}
        							</a>
									<span class="time" title="创建时间：{echo date('Y-m-d', $thread['dateline']);}">{echo date('Y-m-d', $thread['dateline']);}</span>
								</div>
							</div>
						</div>
						<!--{/loop}-->
					</div>
				</div>
			</div>

			<!--{if $klp_pagation}-->
			<div class="klp_homepage klp_bigcl">
				$klp_pagation
			</div>
			<!--{/if}-->

			<!--{else}-->

			<div class="klp_wknull">
				<div class="klp_wknullinner" style="padding-top: 113.25px;">
					<span class="klp_mullimg"></span>
					<div class="klp_wknulltips">
						<p class="klp_subjecttit">TA还没有发布过任何创作</p>
					</div>
				</div>
			</div>

			<!--{/if}-->

		</div>

		<div class="klp_userftcon">

			<div class="klp_userzwrap left">

				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">个人信息</span>
						<a href="home.php?mod=space&uid=$space[uid]&do=profile&from=space" title="更多" class="klp_vmore klp_weblinkcolor">更多</a>
					</div>
					<div class="klp_showcon">
						<ul class="klp_attinfo">
							<li class="klp_enterpriselink"><a href="home.php?mod=space&uid=$space[uid]" title="{$space[username]}">{$space[username]}</a></li>
							<li class="klp_firmaddr"><!--{if $member_profile[resideprovince]}-->{$member_profile[resideprovince]}<!--{if $member_profile[residecity]}-->-{$member_profile[residecity]}<!--{/if}--><!--{else}-->未设置<!--{/if}--></li>
							<li class="klp_numenterprises"><!--{if $member_profile[bio]}-->$member_profile[bio]<!--{else}-->这家伙很懒，什么都没有留下！<!--{/if}--></li>                            
						</ul>
					</div>
				</div>

				<!--{eval $manage_forum = get_uid_forum($space[uid]);}-->
				<!--{if $manage_forum}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">{lang manage_forums}</span>
					</div>
					<div class="klp_showcon">
						<div class="klp_materfits">
							<!--{loop $manage_forum $key $value}-->
							<span class="mark"><a href="forum.php?mod=forumdisplay&fid=$key" title="{$value}">{$value}</a></span>
							<!--{/loop}-->
						</div>
					</div>
				</div>
				<!--{/if}-->

				<!--{eval $manage_forum = get_uid_forum($space[uid]);}-->
				<!--{if $manage_forum}-->
				<div class="klp_showlistbox hide">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">{lang manage_forums}</span>
					</div>
					<div class="klp_visitwrap">
						<ul class="klp_visitorcon">
							<!--{loop $manage_forum $key $value}-->
							<!--{eval $forum_forumfield = get_forum_forumfield($key);}-->
							<li class="klp_complaintteam">
							<a href="forum.php?mod=forumdisplay&fid=$key" title="{$value}" class="klp_visithd">
								<!--{if $forum_forumfield[icon]}-->
								<img src="data/attachment/common/{$forum_forumfield[icon]}" width="48" height="48">
								<!--{else}-->
								<img src="template/huyou_zisy/klp_img/home/fail.png" width="48" height="48">
								<!--{/if}-->
							</a>
							</li>
							<!--{/loop}-->
						</ul>
					</div>
				</div>
				<!--{/if}-->

				<!--{eval $home_follow = get_home_follow($space[uid],12)}-->
				<!--{if $home_follow}-->
				<!--{if $_GET[do]!='following' && $_GET[do]!='follower'}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">TA的关注 </span>
					</div>
					<div id="recent_view_member">
						<div class="klp_visitwrap">
							<ul class="klp_visitorcon">
								<!--{loop $home_follow $var_follow}-->
								<li class="klp_visitorlist">
								<a href="home.php?mod=space&uid=$var_follow[followuid]" title="$var_follow[fusername]" c="1" class="klp_visithd">
									<img src="{echo avatar($var_follow[followuid],'big',1);}" width="48" height="48">
								</a>
								<a href="home.php?mod=space&uid=$var_follow[followuid]" title="$var_follow[fusername]" class="klp_visname">$var_follow[fusername]</a>
								<span>刚刚</span>
								</li>
								<!--{/loop}-->

							</ul>
						</div>
					</div>
				</div>
				<!--{/if}-->
				<!--{else}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">TA的关注 </span>
					</div>
					<div class="klp_smnullbox">
						<div class="klp_msgboxnull">
							<div class="klp_msgboxinner">
								<span class="klp_mullimg"></span>
								<span class="klp_msgnulltips">还没有人关注TA</span>
							</div>
						</div>
					</div>
				</div>
				<!--{/if}-->
				<div class="klp_usercopywrap">
					<a href="javascript:;" title="{$space[username]}" class="klp_weblinkcolor">{$space[username]} &nbsp;&nbsp;</a>版权所有，请勿用于任何用途
				</div>
			</div>

			<div class="klp_conymeida right">
				<div class="klp_homecontent">
					<div class="klp_commentmod klp_artcomments klp_bloglist">
						<form action="home.php?mod=spacecp&ac=comment" id="quickcommentform_$space[uid]" name="quickcommentform_$space[uid]" method="post" autocomplete="off" onsubmit="ajaxpost('quickcommentform_$space[uid]', 'return_commentwall_$space[uid]');doane(event);">
						<div id="klp_neidocom" class="editcomment">
							<input type="hidden" name="refer" value="home.php?mod=space&uid=$space[uid]">
							<input type="hidden" name="id" value="$space[uid]">
							<input type="hidden" name="idtype" value="uid">
							<input type="hidden" name="commentsubmit" value="true">
							<div class="klp_pingcon">
								<textarea name="message" id="comment_message" class="klp_textstyle klp_txtarastyle commentbig textarea gbook-textarea"></textarea><span class="klp_jzgg">严禁广告</span>
							</div>
							<div class="klp_expbox">
								<input type="hidden" name="handlekey" value="commentwall_$space[uid]">
								<span id="return_commentwall_$space[uid]" class=""></span>
								<input type="hidden" name="formhash" value="{FORMHASH}">
								<a id="comment_face" href="javascript:;" title="{lang insert_emoticons}" onclick="showFace(this.id, 'comment_message');return false;" class="ico_smile">添加表情</a>
								<button type="submit" name="commentsubmit_btn" value="true" id="commentsubmit_btn" class="klp_btncurmid klp_btndisabled klp_addmess">留言</button>
							</div>
						</div>
						</form>

						<!--{eval $home_comment = get_uid_home_comment($space[uid],10);}-->

						<div class="comment-box" >
							<div class="klp_allcommbox">
								<p class="commenttxt">全部留言</p>
								<div class="allcomment-con">
									<div class="commentwrap">
										<script type="text/javascript">
											function succeedhandle_commentwall_$space[uid](url, msg, values) {
												wall_add(values['cid']);
											}
										</script>
										<ul class="klp_pingcon">
											<div id="comment_ul" class="klp_vwall"></div>
											<!--{if $home_comment}-->
											<!--{loop $home_comment $var_comment}-->
											<li id="comment_$var_comment[cid]_li" class="comment-list">
											<div class="comment-list-box gbook-list-box">
												<a href="home.php?mod=space&uid=$var_comment[authorid]" c="1" class="userimg">
													<img src="{echo avatar($var_comment[authorid],'big',1);}" alt="">
												</a>
												<div class="timebox">
													<a href="home.php?mod=space&uid=$var_comment[authorid]" title="" class="usernick">$var_comment[author]</a>
													<span class="issuetimer">
														<span class="time"><!--{echo date('Y-m-d ',$var_comment[dateline]);}--></span>
													</span>
												</div>
												<p class="commoncon">
													<span class="commontxt">$var_comment[message]</span>
												</p>
												<!--{if $_G[uid]}-->
												<div class="commenticons">
													<div class="ricons">
														<!--{if $var_comment[authorid]==$_G[uid]}-->
														<span class="report klp_commnetreport">
															<a href="home.php?mod=spacecp&ac=comment&op=edit&cid=$var_comment[cid]&handlekey=editcommenthk_{$var_comment[cid]}" id="c_$var_comment[cid]_edit" onclick="showWindow(this.id, this.href, 'get', 0);">{lang edit}</a>
														</span>
														<!--{/if}-->
														<!--{if $var_comment[authorid]==$_G[uid] || $var_comment[uid]==$_G[uid] || checkperm('managecomment')}-->
														<span class="report klp_commnetreport">
															<a href="home.php?mod=spacecp&ac=comment&op=delete&cid=$var_comment[cid]&handlekey=delcommenthk_{$var_comment[cid]}" id="c_$var_comment[cid]_delete" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
														</span>
														<!--{/if}-->
													</div>
												</div>
												<!--{/if}-->
											</div>
											</li>
											<!--{/loop}-->
											<!--{else}-->
											<div class="klp_allcempy">
												<a href="javascript:;" class="first-people">还没有收到留言</a>
											</div>
											<!--{/if}-->
										</ul>
									</div>
									<!--{if $home_comment}-->
									<div class="klp_moremess">
										<a href="home.php?mod=space&uid=$space[uid]&do=wall&from=space" class="more-gbook">查看更多留言</a>
									</div>
									<!--{/if}-->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--{template home/space_footer}-->
